package com.xfg.search.dao;

import com.xfg.search.entity.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminDao {
    User findByNameAndPwd(String username,String password);

    int addUser(List<User> userList);
    int addOil(List<Oil> oilList);
    int addOilPhysical(List<Oil> oilList);
    int addOilToxic(List<Oil> oilList);
    int addOilComposition(List<Composition> compositionList);
    int addOilApplication(List<Oil> oilList);
    int addDrug(List<ChineseDrug> drugList);
    int addDrugPromotedStruct(List<DrugPromoted> drugPromotedList);
    int addCompositionStruct(List<Composition> compositionList);

    int addChineseDrug(List<ChineseDrug> chineseDrugList);
}
